<?php 
require_once 'common/common.inc.php';

$date_str = isset($_REQUEST["date_str"]) ? $_REQUEST["date_str"] : "";
$reservation_id = isset($_REQUEST["reservation_id"]) ? $_REQUEST["reservation_id"] : "";
$guid = isset($_REQUEST["guid"]) ? $_REQUEST["guid"] : "";
$error = isset($_REQUEST["error"]) ? $_REQUEST["error"] : "";

if (!isset($_REQUEST["redirect"])) 
{
  $error = "Er is een fout opgetreden tijdens de betaling. ";
  $error .= "Of de betaling is geannuleerd. ";
  $error .= "Je kan afrekenen tijdens de afspraak. ";
  $error .= "Of je kan opnieuw betalen door op de link te klikken in de bevestigings e-mail. ";
  
  // redirect to the same page without the POST data
  header("Location: ".$_SERVER['PHP_SELF']."?redirect=redirect&date_str=$date_str&reservation_id=$reservation_id&guid=$guid&error=$error");
  die;
}

?>

<?php 
include 'common/page.begin.inc.php';
?>

<body>

<div id="wrapper">

  <?php 
  $menuSelected = "diensten";
  $subMenuSelected = "auto-wassen";
  include 'common/body.header.inc.php';
  ?>

  <div id="page" class="container">
  
    <div id="content">

      <?php
      $contentPath = "Auto wassen &gt;&gt; Afspraak Maken";
      include 'common/body.content.header.inc.php';
      ?>
      
      <div class="main-top">
        <div class="first auto-wassen">
        </div>  
        <div class="second">
          <div class="content-blok">

            <h2>De reservering is niet betaald</h2>
        
            <?php 
            include 'common/body.error.inc.php';
            ?>
            
          </div><!-- end content blok -->  
        </div><!-- end second -->  
      </div><!-- end home top -->
            
    </div><!-- end content -->

    <div style="clear: both;"></div>
	</div><!-- end page -->  
  
  <?php 
  include 'common/body.footer.inc.php';
  ?>
  
</div><!-- end wrapper -->

<?php 
include 'common/page.end.inc.php';
?>
